package allen.log;

import java.util.Date;

/**
 * Log Entity represents the one log.
 * */
public class LogEntity {

	private String logName;

	private Date date;
	private LogLevel level;
	private String messsage;
	private Throwable t;

	public LogEntity(String logName, Date date, LogLevel level,
			String messsage, Throwable t) {
		super();
		this.logName = logName;
		this.date = date;
		this.level = level;
		this.messsage = messsage;
		this.t = t;
	}

	public LogEntity(String logName, Date date, LogLevel level, String messsage) {
		this(logName, date, level, messsage, null);
	}

	public LogEntity(String logName, Date date, LogLevel level, Throwable t) {
		this(logName, date, level, null, t);
	}

	public String getLogName() {
		return logName;
	}

	public Date getDate() {
		return date;
	}

	public LogLevel getLevel() {
		return level;
	}

	public String getMesssage() {
		return messsage;
	}

	public Throwable getThrowable() {
		return t;
	}
}
